const fs = require('fs')
const path = require('path')
const {ipcMain}  = require('electron')

ipcMain.handle('on-get-image-list-event', (e,args)=>{
    const files = fs.readdirSync(path.resolve(__dirname,'../public/upload/'))
    return files
})